import Dashboard from '../pages/Dashboard';
import UserManagement from '../pages/Settings/UserManagement';
import Settings from '../pages/Settings';

// 路由配置类型
export interface RouteConfig {
  path: string;
  element: React.ComponentType;
  title: string;
  icon?: string;
  children?: RouteConfig[];
}

// 路由配置
export const routes: RouteConfig[] = [
  {
    path: '/dashboard',
    element: Dashboard,
    title: '仪表盘',
    icon: 'DashboardOutlined',
  },
  {
    path: '/users',
    element: UserManagement,
    title: '用户管理',
    icon: 'UserOutlined',
  },
  {
    path: '/settings',
    element: Settings,
    title: '系统设置',
    icon: 'SettingOutlined',
  },
];

// 获取菜单项配置
export const getMenuItems = () => {
  return routes.map(route => ({
    key: route.path,
    label: route.title,
  }));
}; 